package jdk8.streamsapi;

import jdk8.streamsapi.enums.Status;

/**
 * Description: jdk1.8新特性：Streams
 * 例子，任务对象，用于展示Streams列表处理
 * 
 * @author Kwum
 * @date 2017年6月28日 下午3:30:24
 * @version 1.0
 */

public class Task {

    private Status state;
    private Integer point;
    
    public Status getState() {
        return state;
    }
    
    public void setState(Status state) {
        this.state = state;
    }
    
    public Integer getPoint() {
        return point;
    }
    
    public void setPoint(Integer point) {
        this.point = point;
    }

    @Override
    public String toString() {
        return "Task [state=" + state + ", point=" + point + "]";
    }

    public Task(Status state, Integer point) {
        super();
        this.state = state;
        this.point = point;
    }
}
